package com.medical.standard.entity;

import java.util.Date;

public class DocumentTemplate {
    private Integer documentId;
    private String documentNumber;  // 自动生成的文档编号
    private String productName;
    private String productModel;
    private Integer standardId;
    private String performanceIndicators;  // 性能指标
    private String inspectionMethods;      // 检验方法
    private String productSpecification;   // 产品型号/规格说明
    private String terminology;            // 术语
    private String createdBy;
    private Date createDate;
    private String status;  // 草稿、已完成等

    // 构造方法
    public DocumentTemplate() {
        this.createDate = new Date();
        this.status = "草稿";
    }

    // getter和setter方法
    public Integer getDocumentId() { return documentId; }
    public void setDocumentId(Integer documentId) { this.documentId = documentId; }

    public String getDocumentNumber() { return documentNumber; }
    public void setDocumentNumber(String documentNumber) { this.documentNumber = documentNumber; }

    public String getProductName() { return productName; }
    public void setProductName(String productName) { this.productName = productName; }

    public String getProductModel() { return productModel; }
    public void setProductModel(String productModel) { this.productModel = productModel; }

    public Integer getStandardId() { return standardId; }
    public void setStandardId(Integer standardId) { this.standardId = standardId; }

    public String getPerformanceIndicators() { return performanceIndicators; }
    public void setPerformanceIndicators(String performanceIndicators) { this.performanceIndicators = performanceIndicators; }

    public String getInspectionMethods() { return inspectionMethods; }
    public void setInspectionMethods(String inspectionMethods) { this.inspectionMethods = inspectionMethods; }

    public String getProductSpecification() { return productSpecification; }
    public void setProductSpecification(String productSpecification) { this.productSpecification = productSpecification; }

    public String getTerminology() { return terminology; }
    public void setTerminology(String terminology) { this.terminology = terminology; }

    public String getCreatedBy() { return createdBy; }
    public void setCreatedBy(String createdBy) { this.createdBy = createdBy; }

    public Date getCreateDate() { return createDate; }
    public void setCreateDate(Date createDate) { this.createDate = createDate; }

    public String getStatus() { return status; }
    public void setStatus(String status) { this.status = status; }

    @Override
    public String toString() {
        return String.format("文档[编号=%s, 产品=%s, 型号=%s, 状态=%s]",
                documentNumber, productName, productModel, status);
    }
}